#include<iostream>
#include<stack>
#include<map>
using namespace std;
int main() {
    string s = "(";
    map<char, char> mem;
    mem['('] = ')';
    mem['['] = ']';
    mem['{'] = '}';
    cout << mem[s[0]] << endl;
    stack<char> stk;
    stk.push(s[0]);
    cout << stk.top() << endl;
}